<?php
namespace Admin\Controller;
use Think\Controller;
use Com\Wechat;

class WechatController extends CommonController
{
    const TOKEN = 'Pg9jMrdXbxdZxvo34Ep23dDv';

    public $wxModel;
    public $token;
    public $appid;
    public $appsecret;

    public function _initialize()
    {
        $params = array("index" ,"self");
        parent::_initialize($params);


    }

    public function __construct()
    {
        $this->connect_wx();
        $config = M()->where("")->select();
    }

    public function connect_wx()
    {
        $this->wxModel = new Wechat( self::TOKEN );
    }

    public function index()
    {

        $this->display();
    }

}